project(audio-mixer)

file(GLOB audio_mixer_sources ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
list(APPEND audio_mixer_sources "audio_frame_manipulator.cc"
        "audio_mixer_impl.cc"
        # "audio_mixer_test.cc"
        "default_output_rate_calculator.cc"
        "frame_combiner.cc"
        "gain_change_calculator.cc"
        #"sine_wave_generator.cc"
        )

add_library(${PROJECT_NAME} ${LIB_TYPE} ${audio_mixer_sources})

target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../webrtc)

target_compile_definitions(${PROJECT_NAME} PUBLIC WEBRTC_APM_DEBUG_DUMP=1)

target_link_libraries(${PROJECT_NAME} PUBLIC rtc-base webrtc-api system-wrappers webrtc-audio common-audio audio-processing)